// 这是注册功能所有接口
import axios from "./axios"

// 定义发送短信验证码接口
export function sendCodeApi(data:{tel:string}){
    return axios({
        method:'post',
        url:'/user/dosendmsgcode',
        data
    })
}
// 2\定义验证短信验证码接口
export function checkCodeApi(data:{tel:string;telcode:number}){
    return axios({
        method:'post',
        url:'/user/docheckcode',
        data
    })
}
// 3、定义验证手机号码是否被注册过的接口
export function checkTelApi(data:{tel:string}){
    return axios({
        method:'post',
        url:'/user/docheckphone',
        data
    })
}
// 4\注册接口

export function registerApi(data:{tel:string,password:string}){
    return axios({
        method:'post',
        url:'/user/dofinishregister',
        data
    })
}

